@import url('@/assets/css/theme.css');

.container {
  padding: 20px;
  position: relative;
  overflow: hidden;
  background: var(--background-color, linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%));
}

.container::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(64, 158, 255, 0.1), rgba(103, 194, 58, 0.1));
  z-index: -1;
}

.container::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(230, 162, 60, 0.1), rgba(245, 108, 108, 0.1));
  z-index: -1;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 20px;
  background: linear-gradient(135deg, rgba(64, 158, 255, 0.1), rgba(103, 194, 58, 0.1));
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  animation: fadeInDown 0.6s ease-out;
}

.panel-title {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
}

.panel-title .el-icon {
  margin-right: 10px;
  font-size: 24px;
  color: var(--primary-color);
  animation: pulse 2s infinite;
}

.search-card {
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.8s ease-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.search-form .el-form-item {
  margin-bottom: 0;
}

.table-card {
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  animation: fadeInUp 1s ease-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.table-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pagination-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.el-button {
  transition: all 0.3s ease;
}

.el-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.el-table {
  border-radius: 8px;
  overflow: hidden;
}

.el-table th {
  background-color: rgba(64, 158, 255, 0.1) !important;
  color: var(--primary-color);
  font-weight: bold;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* 添加浮动形状装饰 */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  z-index: -1;
}

.shape-1 {
  top: 10%;
  left: 5%;
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #409EFF, #67C23A);
  animation: float 6s ease-in-out infinite;
}

.shape-2 {
  top: 60%;
  right: 10%;
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, #E6A23C, #F56C6C);
  animation: float 8s ease-in-out infinite;
}

.shape-3 {
  bottom: 20%;
  left: 15%;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #909399, #7F4CE5);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* 返回首页按钮样式 */
.home-button {
  background: linear-gradient(45deg, #4f46e5, #7c3aed);
  border: none;
  color: white;
  margin-right: 15px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.home-button:hover {
  background: linear-gradient(45deg, #4338ca, #6d28d9);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

/* 添加按钮样式 */
.add-button {
  background: linear-gradient(45deg, #10b981, #059669);
  border: none;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.add-button:hover {
  background: linear-gradient(45deg, #0d9488, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}
